package org.prototype.bank.domain;

public class Account {
	private long id;
	private double balance;
	private String accountId;

	public Account() {
		super();
	}

	public Account(String accountId, double balance) {
		super();
		this.balance = balance;
		this.accountId = accountId;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public void credit(double amount) {
		assert amount > 0;
		balance += amount;
	}

	public void debit(double amount) {
		assert amount > 0;
		balance -= amount;
	}

}
